package com.gongpingjialoan.activity.tool;

import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.RelativeLayout;

import com.gongpingjialoan.R;
import com.gongpingjialoan.activity.main.BaseActivity;
import com.gongpingjialoan.data.UserManager;

/**
 * 我的     （工具界面）  wang
 *
 * @author Administrator
 */
public class ToolsActivity extends BaseActivity {

    private ToolsActivity mySelf = this;

    private RelativeLayout tools_layout2, tools_layout3, tools_layout4;

    private UserManager mUserManager;

    @Override
    public void onCreate(Bundle savedInstanceState) {
        isSendData = true;
        action = "tools";
        super.onCreate(savedInstanceState);

        setContentView(R.layout.busi_tools_main);

        initBase(mySelf);
        setTitle("工具");

        mUserManager = new UserManager(mySelf);
        mUserManager = mUserManager.LoadUserInfo();

        tools_layout2 = (RelativeLayout) findViewById(R.id.tools_layout2);
        tools_layout3 = (RelativeLayout) findViewById(R.id.tools_layout3);
        tools_layout4 = (RelativeLayout) findViewById(R.id.tools_layout4);

        // 准入标准查询
        tools_layout2.setOnClickListener(new View.OnClickListener() {

            @Override
            public void onClick(View v) {
                Intent intent = new Intent();
                intent.setClass(mySelf, AccessToCityActivity.class);
//                intent.setClass(mySelf, RealNameinformationActivity.class);
                startActivity(intent);
            }
        });
        // 车辆违章查询
        tools_layout3.setOnClickListener(new View.OnClickListener() {

            @Override
            public void onClick(View v) {
                Intent intent = new Intent();
                intent.setClass(mySelf, LicenceActivity.class);
                startActivity(intent);
            }
        });
        // 出险记录查询
        tools_layout4.setOnClickListener(new View.OnClickListener() {

            @Override
            public void onClick(View v) {
                Intent intent = new Intent();
                intent.setClass(mySelf, InsuranceActivity.class);
                startActivity(intent);

            }
        });
    }


}
